#include<stdio.h>
int main()
{
int i=1,sum=0,s;
do
{
s=i*i;
printf("%3d \n",s);
i=i+1;
sum+=s;
}
while(i<=10);
printf("The sum is %d \n",sum);
return 0;
}
